package fr.vvins.core.page.entity;

import java.io.Serializable;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Table;

import fr.vvins.core.dao.EntityImpl;

@Entity
@Table(schema="www", name="WWW_TEMPLATE")
@Inheritance(strategy=InheritanceType.JOINED)

public class Template extends EntityImpl implements Serializable {

	private static final long serialVersionUID = 1L;

	@Id
	@Column(name="ID")
	@GeneratedValue(strategy=GenerationType.AUTO)
	private Integer id;
	
	@Basic
	@Column(name="NAME")
	private String name;
	
	@Basic
	@Column(name="DTYPE")
	private String type;
	
	@Basic
	@Column(name="PATH")
	private String path;
	
	@Basic
	@Column(name="CONTROLLER")
	private String controller;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	public String getPath() {
		return path;
	}

	public void setPath(String path) {
		this.path = path;
	}

	public String getController() {
		return controller;
	}

	public void setController(String controller) {
		this.controller = controller;
	}

}
